﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.kucunProject.model.User" %>
<%

	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	User u = (User)session.getAttribute("userInfo");
	
%>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta charset="utf-8" />
		<title>首页 | xxxx管理系统</title>
		<script type="text/javascript" src="<%=basePath%>homepage/js/common.js"></script>
		<script type='text/javascript' src='<%=basePath%>dwr/engine.js'></script>
		<script type='text/javascript' src='<%=basePath%>dwr/util.js'></script>
		<link rel="stylesheet" type="text/css" media="all" href="<%=basePath%>sources/css/reset.css" />
		<link rel="stylesheet" type="text/css" media="all" href="<%=basePath%>sources/css/global.css" />
		<link rel="stylesheet" type="text/css" media="all" href="<%=basePath%>sources/css/ui.css" />
		<link rel="stylesheet" type="text/css" media="all" href="<%=basePath%>sources/css/index.css" />
		<script type="text/javascript" src="<%=basePath%>homepage/js/jquery-1.2.6.pack.js"></script>
		<script type="text/javascript" src="<%=basePath%>homepage/js/jquery.messager.js"></script>
		<script type="text/javascript" src="<%=basePath%>homepage/js/index.js"></script>
		
		<!-- *************************************原************************************************* -->
		<script type="text/javascript" language="javascript" >
			var basePath='<%=basePath%>';
			var basepath='<%=basePath%>';
	        //退出系统
			function goOffPage(){
				if(confirm("您确认要退出该系统吗？")){
					window.location=basePath+'logoff.jsp'
				}
			}
			//修改密码
			var popUpWin;
			function showEdit(){
				//判断该窗口(popUpWin)是否已经存在，如果已经存在，则先关闭窗口，然后再打开新窗口 
				if(popUpWin){
					if(!popUpWin.closed){ 
						popUpWin.close(); 
					}
			　　} 
				var width  = "800";
				var height = "400";
			　　//弹出窗口居中 
			　　popUpWin =window.open('<%=basePath%>homepage/userPasswordEdit.jsp','','width='+width+',height='+height+',top='+(screen.height-height)/2+',left='+(screen.width-width)/2); 
			}
    	</script>
	</head>
	<body style="overflow: hidden;" >
		<div class="web">
        	<div class="header">
		  		<div class="logo"></div>
           		<div class="header-nav" id="toptree">
	            </div>
	            <div class="header-right">
	            	<div class="date" id="date"></div>
	                <div class="welcome">欢迎你&nbsp;&nbsp;<%=u.getName() %></div>
	                <div class="set">
	                	<a class="password" onclick="showEdit()">修改密码</a>
                    	<a class="quit" onclick="goOffPage()">退出系统</a>
	                </div>
	            </div>
	        </div>
	    </div>
	    <div class="main">
			<iframe src="<%=basePath%>homepage/middle.jsp" frameborder="0" id="iframeid" name="iframeid" scrolling="yes" width="100%" noresize="noresize" onload="TuneHeight()"></iframe>
	    </div>
	    <div class="footer">
	    </div>
	</body>
</html>